import request from "@/utils/request.js";

export function login(userInfo) {
  return request({
    url: "/user/login.do",
    method: "post",
    data: userInfo
  });
}

export function checkLogin() {
  return request({
    url: "/user/checkLogin.do",
    method: "post"
  });
}

export function logout() {
  return request({
    url: "/user/logout.do",
    method: "post"
  });
}
